package com.hlkj.pay.vo.openapi.fund.req;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.hlkj.framework.common.valid.EnumValid;
import com.hlkj.pay.enums.MerchantEnum;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author HlpayTeam
 * @date 2024/10/15 10:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OpenApiFundAccountInfoReq {
	
	/**
	 * 商户类型，1=个人，2=企业
	 */
	@Schema(description ="商户类型，1=个人，2=企业")
	@EnumValid(value = MerchantEnum.MERCHANT_TYPE.class,message = "商户类型 无效")
	@NotNull(message = "商户类型 不能为空")
	private Integer type;
	@Schema(description ="营业执照信息")
	@Valid
	private OpenApiFundAccountLicenseReq merchantAccessLicense;
	@Schema(description ="法人信息")
	@NotNull(message="[法人信息]不能为空")
	@Valid
	private OpenApiFundAccountCertReq merchantAccessLegal;
	@Schema(description ="联系人信息")
	@Valid
	private OpenApiFundAccountContactReq merchantAccessContact;


}
